// title属性 menu- 后面跟 menu.js里面的name，会自动匹配menu的title
// path属性 menu- 后面跟menu.js里面的name，会自动截取直到当前菜单的路径
// menuName属性 当进入该页面时，将当前菜单栏对应到该name的菜单，该值默认为自己的name，用于展开菜单栏及高亮当前菜单
// 如此配置是为了保证menu菜单的可控性唯一性，方便菜单的各种后台配置
export default {
  path: "/user",
  component: () => import("@/frame"),
  name: "user",
  meta: { title: "menu-user" },
  children: [
    //资料管理
    {
      path: "material",
      component: () => import("@/views/user/index1"),
      name: "material",
      meta: { title: "menu-material", path: ["menu-material"] }
    },
    // 账号管理
    {
      path: "b",
      component: () => import("@/views/user/index3"),
      name: "account",
      meta: { title: "menu-account", path: ["menu-account"] }
    },
    // 密码管理
    {
      path: "c",
      component: () => import("@/views/user/index4"),
      name: "psd",
      meta: { title: "menu-psd", path: ["menu-psd"] }
    },
    // 修改密码
    {
      path: "d",
      component: () => import("@/views/user/index2"),
      name: "user2",
      meta: {
        title: "修改密码",
        menuName: "psd",
        path: ["menu-psd", "修改密码"]
      }
    }
  ]
};
